//
//  YWNetwork.h
//  百布业务
//
//  Created by 陈炳桦 on 15/10/28.
//  Copyright © 2015年 陈炳桦. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface YWNetwork : NSObject

// 正式或测试环境
+ (NSString *)getDomain;

// 登录接口
+ (void)loginWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 获取通过的需求列表接口
+ (void)selectBuyerDemandWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 需求、下单、集中采购接口
+ (void)demandListWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 添加商户接口
+ (void)addSellerWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 处理状态接口
+ (void)handleHistorysWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 回复列表接口
+ (void)replysWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 发布需求接口
+ (void)postDemandWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 修改需求接口
+ (void)updateDemandWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

// 删除或关闭需求接口
+ (void)updateStatusWithParameters:(NSDictionary *)parameters success:(void(^)(AFHTTPRequestOperation *operation, id responseObject))successBlock failure:(void(^)(AFHTTPRequestOperation *operation, NSError *error))failureBlock;

@end
